(*************************************************** Ant Movie Catalog importation script www.antp.be/software/moviecatalog/ [Infos] Authors=Mrknife Title=AnimeNfo Description=AnimeNfo (US) Site=http://www.animenfo.com Language=EN Version= Requires=3.5.0 Comments= This was slapped together from the script IMDB that was included with version 3.4.3| !! Country and Language are always set to Japan/Japanese| !! Only the First Category will be used| !! You will always have to select a title, even when the list is only 1 option License=This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | GetInfo=1 [Options] ***************************************************) program AnimeNfo; uses StringUtils1; var MovieName: string; MovieURL: string; MovieNumber: string; // ***** analyzes the results page that asks to select a movie from a list ***** procedure AnalyzeResultsPage(Address: string); var PageText: string; Value: string; begin PageText := GetPage(Address); if pos(' Search Result', PageText) = 0 then begin AnalyzeMoviePage(PageText) end else begin PickTreeClear; repeat Value := 'results:'; if Value <> '' then begin HTMLRemoveTags(Value); HTMLDecode(Value); PickTreeAdd(Value, ''); end; Value := TextBetween(PageText, 'Search Result', 'End Contents'); PageText := RemainingText; until not AddMovieTitles(Value); Value := TextBefore(PageText, '">more titles', '